//基本路由配置
import {createRouter, createWebHistory} from 'vue-router'
const router=createRouter({
    history:createWebHistory(),
    routes:[
        {
            path:'/',
            redirect:'/regist'
        },
        {
            path:'/regist',
           component:()=>import('../views/Regist.vue')
        },
        {
            path:'/login',
           component:()=>import('../views/Login.vue')
        },
    ]
})
export default router   